<?php


namespace app\api\controller;


use app\common\controller\Api;
/**
 * 党建引领接口
 */
class PartyConfig extends Api
{
    protected $noNeedLogin = ['*'];
    protected $noNeedRight = ['*'];

    public function info(){
        $data = model('app\admin\model\PartyConfig')->where('id',1)->find();
        if($data){
            $data->hidden(['id']);
            $data['party_bg']=wdsxh_full_url($data['party_bg']);
        }
        $this->success('请求成功', $data,200);
    }
}